Xbasic

A5_RUN_SAVED_ZIP_JOB Function

Syntax

Return as P = a5_run_saved_zip_job(C saved_settings [,C method [,C _to [,C subject [,C message [,C zipfilename [,L exclude_files_in_list ]]]]]])

Arguments

saved_settingsCharacter

Settings created though the Zip Workspace dialog box. The Saved_Settings name is specified when you click the Save Settings button.

methodCharacter

Default = "Zip". The method used to zip the file. Can be one of the following options:

Method
Description
Zip

Create a zip file and saves it to disk.

Send

Send the archive via email. Specify the optional address fields if this method is used.

_toCharacter

The recipient of the emailed database.

subjectCharacter

The subject line on the email.

messageCharacter

The message of the email.

zipfilenameCharacter

The name of the zip file to attach to the message.

exclude_files_in_listLogical

Default = .F.

.T. = Select all files except the specified database files.

.F. = Select the specified database files.

Description

The A5_RUN_SAVED_ZIP_JOB() function runs a saved Zip job. Zip settings are created using the Zip Workspace dialog box (accessed from the Tools > Zip Workspace or Tools > Send Workspace command).

Using this function, a developer could easily create a saved zip setting called "application_files_only" that zipped up all of the application files (omitting all data files), which he could then send to all of his clients. The entire operation could be completely automated.

Example

dim ptr as P
ptr = a5_run_saved_zip_job("expressions_test_zip", "Send", "[email protected]", "The latest Expressions Test database", "The database is attached")

See Also